{% extends "sphene/sphwiki/base.html" %}

{% load sphboard_extras %}
{% load sph_extras %}

{% block head %}
  {{ block.super }}
  {% if sph_settings.wiki_rss_url %}
    <link rel="alternate" title="Latest Wiki Changes" href="{{ sph_settings.wiki_rss_url }}" type="application/rss+xml">
  {% endif %}
{% endblock %}

{% block content %}
  {% include "sphene/sphwiki/_snip_header.html" %}
  {% if redirects %}
    <ul style="sphwiki redirects">
    {% for redirect in redirects %}
      <li>Redirected from <a href="{{ redirect.get_absolute_url }}?redirect=no">{{ redirect.get_title }}</a></li>
    {% endfor %}
    </ul>
  {% endif %}
  {% if snip.id %}
    {% if False and sph.toc %}
      <div id="sphwiki_toc">{{ sph.toc }}</div>
    {% endif %}

    <div class="sphwiki_body">
      {{ snip_rendered_body }}
    </div>
  {% else %}
    Snip <strong>{{ snipName }}</strong> does not yet exist. {% if snip.has_edit_permission %}<a href="{{ snip.get_absolute_editurl }}">Create It.</a>{% endif %}
  {% endif %}

{% endblock %}
